<template>
  <footer class="footer">
    <div class="container">
      <div class="footer-content">
        <div class="footer-section">
          <h3>关于我们</h3>
          <ul>
            <li><a href="#">公司介绍</a></li>
            <li><a href="#">企业文化</a></li>
            <li><a href="#">发展历程</a></li>
            <li><a href="#">联系我们</a></li>
          </ul>
        </div>
        
        <div class="footer-section">
          <h3>帮助中心</h3>
          <ul>
            <li><a href="#">购物指南</a></li>
            <li><a href="#">配送方式</a></li>
            <li><a href="#">支付方式</a></li>
            <li><a href="#">售后服务</a></li>
          </ul>
        </div>
        
        <div class="footer-section">
          <h3>商家服务</h3>
          <ul>
            <li><a href="#">商家入驻</a></li>
            <li><a href="#">商家中心</a></li>
            <li><a href="#">运营服务</a></li>
            <li><a href="#">商家社区</a></li>
          </ul>
        </div>
        
        <div class="footer-section">
          <h3>关注我们</h3>
          <div class="social-links">
            <a href="#" class="social-link">
              <i class="fab fa-weixin"></i>
            </a>
            <a href="#" class="social-link">
              <i class="fab fa-weibo"></i>
            </a>
            <a href="#" class="social-link">
              <i class="fab fa-qq"></i>
            </a>
            <a href="#" class="social-link">
              <i class="fab fa-tiktok"></i>
            </a>
          </div>
          <div class="qr-code">
            <img src="https://via.placeholder.com/100x100/667eea/ffffff?text=QR" alt="二维码">
            <p>扫码关注公众号</p>
          </div>
        </div>
      </div>
      
      <div class="footer-bottom">
        <div class="footer-links">
          <a href="#">隐私政策</a>
          <a href="#">服务条款</a>
          <a href="#">网站地图</a>
          <a href="#">法律声明</a>
        </div>
        <div class="footer-copyright">
          <p>&copy; 2024 视分享商城. 保留所有权利. | 浙公网安备33011002014818号</p>
        </div>
      </div>
    </div>
  </footer>
</template>

<script setup lang="ts">
// Footer 组件不需要特殊的逻辑
</script>

<style scoped>
.footer {
  background: #2d3436;
  color: white;
  padding: 40px 0 20px;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #f8f9fa;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: #bdc3c7;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #667eea;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #495057;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #667eea;
  transform: translateY(-2px);
}

.social-link i {
  font-size: 18px;
}

.qr-code {
  text-align: center;
}

.qr-code img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.qr-code p {
  font-size: 12px;
  color: #bdc3c7;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid #495057;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #667eea;
}

.footer-copyright {
  text-align: right;
}

.footer-copyright p {
  font-size: 12px;
  color: #95a5a6;
  margin: 0;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .footer-copyright {
    text-align: center;
  }
}
</style> 